<template>
	<view>
		<uni-nav-bar left-icon="arrowthinleft" title="历史缴费" :border="false" :fixed="true" bg="bg-fff" color="#333"
			@clickLeft="goBack()">
		</uni-nav-bar>
		<view class="w100 bg-f7f7f7" style="height: 10rpx;"></view>
		<view v-for="(item,index) in list" :key='index' class="padding-x-24 padding-y-30 solid-bottom flex align-center justify-between bg-fff">
			<view class="flex1">
				<view class="fs-28 color-333">平台缴费</view>
				<view class="fs-26 color-999">2021-09-23  10:23</view>
			</view>
			<view class="fs-32 color-zhuse fw-600">-30</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				page:1,
				hasMore: true,
				loadStatus: '',
				list:[]
			}
		},
		onLoad() {
			this.getList()
		},
		onReachBottom() {
			if (this.hasMore) {
				this.page += 1;
				this.getList();
			}
		},
		methods: {
			getList() {
				this.isLoading = true;
				this.$api.fee_list({page:this.page}).then(res => {
					if (res.code == 1) {
						this.isLoading = false;
						this.list = [...this.list, ...res.data.data];
						if (res.data.data.length != 0) {
							this.hasMore = true;
							this.loadStatus = '';
						} else {
							this.hasMore = false;
							this.loadStatus = 'over';
						}
					}
				})
			}
			
		}
	}
</script>

<style>

</style>
